﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="UrlDataSet" targetNamespace="http://tempuri.org/UrlDataSet.xsd" xmlns:mstns="http://tempuri.org/UrlDataSet.xsd" xmlns="http://tempuri.org/UrlDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="templateConnectionString4" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="templateConnectionString4 (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Big3.Hitbase.DataBaseEngine.Properties.Settings.GlobalReference.Default.templateConnectionString4" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UrlTableAdapter" GeneratorDataComponentClassName="UrlTableAdapter" Name="Url" UserDataComponentName="UrlTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="templateConnectionString4 (Settings)" DbObjectName="Url" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Url] WHERE (([UrlID] = @p1))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UrlID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Url] ([ReferenceID], [ReferenceType], [UrlType], [Url]) VALUES (@p1, @p2, @p3, @p4)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReferenceID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReferenceType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UrlType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Url" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT [UrlID], [ReferenceID], [ReferenceType], [UrlType], [Url] FROM [Url]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Url] SET [ReferenceID] = @p1, [ReferenceType] = @p2, [UrlType] = @p3, [Url] = @p4 WHERE (([UrlID] = @p5))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReferenceID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReferenceType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UrlType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Url" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UrlID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="UrlID" DataSetColumn="UrlID" />
              <Mapping SourceColumn="ReferenceID" DataSetColumn="ReferenceID" />
              <Mapping SourceColumn="ReferenceType" DataSetColumn="ReferenceType" />
              <Mapping SourceColumn="UrlType" DataSetColumn="UrlType" />
              <Mapping SourceColumn="Url" DataSetColumn="Url" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="templateConnectionString4 (Settings)" DbObjectName="Url" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByPersonGroupID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPersonGroupID" GeneratorSourceName="FillByPersonGroupID" GetMethodModifier="Public" GetMethodName="GetDataByPersonGroupID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPersonGroupID" UserSourceName="FillByPersonGroupID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        UrlID, ReferenceID, ReferenceType, UrlType, Url
FROM            Url
WHERE        (ReferenceID = @PersonGroupID) AND (ReferenceType = 0)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="PersonGroupID" ColumnName="ReferenceID" DataSourceName="Url" DataTypeServer="int(4)" DbType="Int32" Direction="Input" ParameterName="@PersonGroupID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ReferenceID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="UrlDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="UrlDataSet" msprop:Generator_UserDSName="UrlDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Url" msprop:Generator_TableClassName="UrlDataTable" msprop:Generator_TableVarName="tableUrl" msprop:Generator_TablePropName="Url" msprop:Generator_RowDeletingName="UrlRowDeleting" msprop:Generator_UserTableName="Url" msprop:Generator_RowChangingName="UrlRowChanging" msprop:Generator_RowEvHandlerName="UrlRowChangeEventHandler" msprop:Generator_RowDeletedName="UrlRowDeleted" msprop:Generator_RowEvArgName="UrlRowChangeEvent" msprop:Generator_RowChangedName="UrlRowChanged" msprop:Generator_RowClassName="UrlRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="UrlID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnUrlID" msprop:Generator_ColumnPropNameInRow="UrlID" msprop:Generator_ColumnPropNameInTable="UrlIDColumn" msprop:Generator_UserColumnName="UrlID" type="xs:int" />
              <xs:element name="ReferenceID" msprop:Generator_ColumnVarNameInTable="columnReferenceID" msprop:Generator_ColumnPropNameInRow="ReferenceID" msprop:Generator_ColumnPropNameInTable="ReferenceIDColumn" msprop:Generator_UserColumnName="ReferenceID" type="xs:int" />
              <xs:element name="ReferenceType" msprop:Generator_ColumnVarNameInTable="columnReferenceType" msprop:Generator_ColumnPropNameInRow="ReferenceType" msprop:Generator_ColumnPropNameInTable="ReferenceTypeColumn" msprop:Generator_UserColumnName="ReferenceType" type="xs:int" />
              <xs:element name="UrlType" msprop:Generator_ColumnVarNameInTable="columnUrlType" msprop:Generator_ColumnPropNameInRow="UrlType" msprop:Generator_ColumnPropNameInTable="UrlTypeColumn" msprop:Generator_UserColumnName="UrlType" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Url" msprop:Generator_ColumnVarNameInTable="columnUrl" msprop:Generator_ColumnPropNameInRow="Url" msprop:Generator_ColumnPropNameInTable="UrlColumn" msprop:Generator_UserColumnName="Url" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Url" />
      <xs:field xpath="mstns:UrlID" />
    </xs:unique>
  </xs:element>
</xs:schema>